
set(CMAKE_SYSTEM_NAME Generic)
set(ARCH aarch64)

set(TOOLCHAIN_PATH "D:/software/Xilinx/SDK/2018.3/gnu/aarch32/nt/gcc-arm-none-eabi/bin")

set(CROSS_COMPILE "arm-none-eabi")

# compilers
set(CMAKE_C_COMPILER   ${TOOLCHAIN_PATH}/${CROSS_COMPILE}-gcc.exe)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PATH}/${CROSS_COMPILE}-g++.exe)
set(CMAKE_LINKER       ${TOOLCHAIN_PATH}/${CROSS_COMPILE}-ld.exe)

set(CMAKE_C_COMPILER_WORKS   TRUE)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_LINKER_WORKS TRUE)

set(HAVE_STRING_H 1)
set(HAVE_MALLOC_H 0)
set(HAVE_STDARG_H 1)
set(HAVE_PTHREAD_H 0)
set(HAVE_TIME_H 0)
set(HAVE_DIRECT_H 0)
set(HAVE_VASPRINTF 0)
set(HAVE_FOPEN 0)
set(HAVE_TIME 0)
set(HAVE_CALLOC 0)
set(HAVE_ZALLOC 0)
set(HAVE_REALLOC 0)
set(HAVE_MEMDUP 0)